import request from '@/utils/request'

// 查询广播公告列表
export function listBulletin(query) {
  return request({
    url: '/other/bulletin/list',
    method: 'get',
    params: query
  })
}

// 查询广播公告详细
export function getBulletin(id) {
  return request({
    url: '/other/bulletin/' + id,
    method: 'get'
  })
}

// 新增广播公告
export function addBulletin(data) {
  return request({
    url: '/other/bulletin/add',
    method: 'post',
    data: data
  })
}
//
// // 修改广播公告
// export function updateBulletin(data) {
//   return request({
//     url: '/other/bulletin/edit',
//     method: 'put',
//     data: data
//   })
// }

// 修改广播公告状态
export function updateBulletinStatus(data) {
  return request({
    url: '/other/bulletin/editstatus',
    method: 'put',
    data: data
  })
}

// 删除广播公告
export function delBulletin(id) {
  return request({
    url: '/other/bulletin/' + id,
    method: 'delete'
  })
}

export function updatasstatus(data) {
  return request({
    url: '/other/bulletin/updateStatus',
    method: 'post',
    data: data
  })
}

export function vipStatistics(query) {
  return request({
    url: '/other/personnel/vip',
    method: 'get',
    params: query
  })
}

export function StatisticsParcel(query) {
  return request({
    url: '/other/packageTable/Statistics',
    method: 'get',
    params: query
  })
}

export function StatisticsPackageParcel(query) {
  return request({
    url: '/other/packageTable/StatisticsPackage',
    method: 'get',
    params: query
  })
}

// 查询EPackageTable每个月的派件数量
export function listTrend(query) {
  return request({
    url: '/other/packageTable/trend',
    method: 'get',
    params: query
  })
}

export function listPackages(query) {
  return request({
    url: '/other/packageTable/packages',
    method: 'get',
    params: query
  })
}

export function BoxParcel(query) {
  return request({
    url: '/other/packageTable/box',
    method: 'get',
    params: query
  })
}


export function courierNum(query) {
  return request({
    url: '/other/personnel/courier',
    method: 'get',
    params: query
  })
}

export function commonVipNum(query) {
  return request({
    url: '/other/personnel/commonVip',
    method: 'get',
    params: query
  })
}

// 查询广播公告列表
export function PidList() {
  return request({
    url: '/other/personnel/pid',
    method: 'get'
  })
}

export function yesterdayVip(query) {
  return request({
    url: '/other/personnel/yesterdayVip',
    method: 'get',
    params: query
  })
}

export function ytdci(query) {
  return request({
    url: '/other/personnel/yesterdayCcourier',
    method: 'get',
    params: query
  })
}

export function ytdcv(query) {
  return request({
    url: '/other/personnel/yesterdayCommonVip',
    method: 'get',
    params: query
  })
}

export function getChartContainer(query) {
  return request({
    url: '/other/personnel/chartContainer',
    method: 'get',
    params: query
  })
}

export function machineTrend(query) {
  return request({
    url: '/other/machine/trend',
    method: 'get',
    params: query
  })
}
